#include "Server.hpp"

int main()
{
    Server server;
    // std::cout << "pos 1" << std::endl;
    server.OpenPipe();
    // std::cout << "pos 2" << std::endl;

    std::string message;
    while(true)
    {
        // std::cout << "pos 3" << std::endl;

        if (server.RecivePipe(&message) > 0)
        {
            std::cout << "Client Say# " << message << std::endl; 
        }
        else break;
        // std::cout << "pos 4" << std::endl;

    }

    server.ClosePipe();
    return 0;
}